package com.zcx.qshop.view;

import android.content.Context;
import android.util.AttributeSet;
import android.webkit.WebSettings;
import android.webkit.WebView;

import com.zcx.helper.util.UtilSDCard;

/**
 * Created by Administrator on 2015/9/15 0015.
 */
public class CacheWebView extends WebView {

    public CacheWebView(Context context, AttributeSet attrs) {

        super(context, attrs);

        WebSettings webSettings = getSettings();

        webSettings.setAppCachePath(UtilSDCard.getSDCardPath() + "yc/");

        webSettings.setAppCacheEnabled(true);

    }

}
